#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_func0.py
# author:Jackiex
# datetime:2022/10/25 16:37
# software: PyCharm

"""
this is function  description 
"""

# def myfunc():
#     print("this is my function")
#
#
# def add(a, b):
#     return a + b
#
#
# # # myfunc()
#
# print(add(2,3))

# 程序的入口
# if __name__ == "__main__":
#     # myfunc()
#
#     res = add(2,3)
#     print(res)

#
# def printNumber(myList):
#     for i in myList:
#         if i % 2 == 0:
#             print(i)
#
#
# l1 = [i for i in range(10)]
#
# printNumber(l1)


'''
   定义一个函数，求N的阶层
'''

# 用户自定义函数
def calculateFac(n):
    i = 1
    res = 1
    while i <= n:
        res *= i
        i += 1
    return res


print(calculateFac(5))


# 系统函数

x = abs(100)
y = abs(-20)

print(x,y)